package org.ztest.spring.jdbc;

import java.util.List;

import org.springframework.stereotype.Repository;

@Repository
public class ImageDao2 extends BaseDao<Image>
{
    public ImageDao2() {
        super(Image.class);
    }

    public void save(Image image) {
        super.insertOrUpdate(image);
    }

    public void delete(Image image) {
        super.delete(image);
    }

    public Image find(int id) {
        return super.selectByPrimarykey(id);
    }

    public List<Image> find(String emoji) {
        return super.selectBySecondKey(emoji);
    }
}
